package com.sft360.kb.drawview;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.view.View;

public class SectorView extends View {
    public SectorView(Context context) {
        super(context);
    }

    public SectorView(Context context,AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        Paint p = new Paint();
        p.setColor(Color.BLACK);
        p.setStyle(Paint.Style.STROKE);
        RectF rectF = new RectF(60,100,200,240);
        canvas.drawArc(rectF,0,90,true,p);

        canvas.drawRect(60,100,200,240,p);
    }
}
